package com.sky.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.sky.common.EnumDeserializer;
import com.sky.common.EnumSerializer;
import com.sky.entity.DishFlavorEntity;
import com.sky.enumeration.DishStatusEnum;
import lombok.Data;

import java.util.List;

@Data
public class DishDTO {
    private Long id;
    private Long categoryId;
    private String name;
    private String description;
    private String image;
    private Long price;
    @JSONField(serializeUsing = EnumSerializer.class,deserializeUsing = EnumDeserializer.class)
    private DishStatusEnum status;
    private List<DishFlavorEntity> flavors;
}
